Skip to main content

AcceptCookies

AcceptCookies

The AcceptCookies component is a React component that displays a toast notification asking the user to accept the Terms of Service and Privacy Policy. It uses the react-cookie library to manage the cookie that stores the user's acceptance status.

Usage

import AcceptCookies from './AcceptCookies';

const MyComponent = () => {
return (
<div>
<AcceptCookies />
{/* Other content */}
</div>
);
};

Props

This component does not accept any props.

Styling

The component uses react-bootstrap components for styling, including ToastContainer, Toast, Accordion, Row, and Col. It also uses inline styles for some elements.

Notes

  • This component requires the react-cookie and react-bootstrap libraries to be installed.
  • The component uses the FaHandshake and FaHandSpock icons from the react-icons library.
  • The component sets a cookie named accept-cookie-policy to store the user's acceptance status.
  • The component displays links to the Privacy Policy and Terms of Service on the Valkyr Labs website.